home *** CD-ROM | disk | FTP | other *** search
- * PSINPUTS.PRG
- *
- * PUTS new entries into SUSPENSE.PRG
- * A DBASE II 16BIT COMMAND FILE to allow input of new entries to
- * SUSPENSE file. Returns to PSJOBTRK.PRG for other suspense options.
- *
- * Version 1
- * By LTC Denny Hugg
- * ANGSC/DOS Andrews AFB MD 16 Jul 1985
- *
- * Version 2
- * modified by Maj Jim McMurry
- * ANGSC/DOSC Truax Field, WI 15 Jun 1986
- *
- ERASE
- USE &gsusfile INDEX &gsusindex, &gpryindex
- * BEGIN PREPARATIONS FOR ENTRY OF DATA.
- *
- DO WHILE T
- ERASE
- APPEND BLANK
- STORE 'INPUT SUSPENSE ITEMS' TO heading
- DO PSHEADING
- @ 22,79 SAY ' Enter A Blank Description To Exit'
- REPLACE in:date WITH gdate
- @ 0, 0 SAY gcuron
- @ 5, 0 SAY 'Description ';
- GET descrip PICTURE;
- '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
- READ
- @ 0, 0 SAY gcuroff
- @ 22,79 SAY gclearline
- IF $(descrip,1,3)= ' '
- ERASE
- STORE 10 TO line
- STORE 'No Description Entered ... Reorganizing And Moving On' TO prompt
- DO PSPROMPT
- DELETE
- * --- the pack will recreate the index files from scratch
- * --- we need this periodic mx even if he doesn't add a record
- PACK
- USE
- RELEASE ALL EXCEPT g*
- RETURN
- ENDIF
- * --- test descrip for presence of a semi-colon then get rid of it
- * --- by replacing it with a space. semi-colons really screw up the
- * --- printouts, so it's worth the time.
- * --- trap out a semi-colon in the last column
- IF $(descrip,55,1) = ';'
- STORE $(descrip,1,54) TO half1
- REPLACE descrip WITH half1
- ENDIF
- * --- trap out a semi-colon in the first column
- IF $(descrip,1,1) = ';'
- STORE $(descrip,2,55) TO half1
- REPLACE descrip WITH half1
- ENDIF
- * --- trap out any semi-colons in between
- STORE 1 TO pointer
- DO WHILE pointer < 56
- IF $(descrip,pointer,1) = ';'
- STORE $(descrip,1,pointer-1) TO half1
- STORE $(descrip,pointer+1,55-pointer) TO half2
- REPLACE descrip WITH half1 + ' ' + half2
- ENDIF
- STORE pointer + 1 TO pointer
- ENDDO
- @ 0, 0 SAY gcuron
- @ 5,11 SAY ': ' + descrip
- @ 7, 1 SAY 'Origin ';
- GET origin picture '!!!!!!!!'
- @ 7,29 SAY 'Priority .'
- @ 7,38 GET priority PICTURE '9.99'
- @ 7,53 SAY 'Date Received / /'
- @ 7,67 GET in:date PICTURE '99/99/99'
- @ 9, 4 SAY 'Due / /'
- @ 9, 8 GET duedate PICTURE '99/99/99'
- @ 9,34 SAY 'OPR ';
- GET opr PICTURE '!!!!'
- @ 9,57 SAY 'Phone - -'
- @ 9,63 GET phone PICTURE '999-999-9999'
- @ 11, 0 SAY 'Remarks ';
- GET rem1
- @ 12, 8 GET rem2
- READ
- @ 0, 0 SAY gcuroff
- * --- put the 0's in the priority if necessary
- STORE TRIM(priority) TO mpriority
- IF mpriority = ' .'
- REPLACE priority WITH '0.00'
- ELSE
- STORE '00' TO zeros
- STORE mpriority + $(zeros,1,4-LEN(mpriority)) TO mpriority
- REPLACE priority WITH mpriority
- ENDIF
- ENDDO T
- * --- EOF PSINPUTS.PRG